package com.bupt.liutong.admin.shop.dao;

import java.util.List;

import com.bupt.liutong.admin.core.base.Ibatis;
import com.bupt.liutong.admin.shop.dto.Order;
import com.bupt.liutong.admin.shop.dto.OrderProd;

public class OrderDao {
	
	private Ibatis ibatis;
	
	// 添加订单
	public Integer insertOrder(Order order) {
		return (Integer) ibatis.insert("shop_order.insertOrder", order);
	}

	// 添加订单中商品条目
	public void insertOrderProd(OrderProd orderProd) {
		ibatis.insert("shop_order.insertOrderProd", orderProd);
	}

	public void setIbatis(Ibatis ibatis) {
		this.ibatis = ibatis;
	}
}
